package com.xiaocai.myblog.enums;

/**
 * @author chenhefu
 * @date 2019-09-30 17:45
 */
public enum ResponseEnum {
    /**
     * 请求成功
     */
    SUCCESS(0,"success"),
    /**
     * 失败请求
     */
    ERROR(1, "fail"),
    /**
     * 系统异常
     */
    SYSTEM_ERROR(1000, "服务端错误"),
    /**
     *
     */
    BUSSINESS_ERROR(2001, "业务逻辑错误"),
    /**
     * 参数错误
     */
    VERIFY_CODE_ERROR(2002, "业务参数错误");

    private int code;
    private String msg;

    ResponseEnum(int code, String msg){
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
